//priority 100
/**
 * 词条的工具类用于注册各种词条和词条组
 * 请不要删除第一行注释，第一行注释更改了kubejs脚本的默认加载优先级
*/
function EntryHelper() {
     this.AllEntry = {};
     this.AllEntryGroup = {};
}

EntryHelper.prototype.RegisterEntry = function (Entry) {
     this.AllEntry[Entry.getName()] = Entry
     return this
};

EntryHelper.prototype.RegisterEntryGroup = function (EntryGroup) {
     this.AllEntryGroup[EntryGroup.getName()] = EntryGroup
     return this
};

EntryHelper.prototype.AddToEntryGroup = function (Entry, EntryGroupName) {
     if (this.AllEntryGroup[EntryGroupName] != undefined) {
          this.AllEntryGroup[EntryGroupName].AddEntry(Entry)
     }
     return this
};

const EntryResult = {
     error() {
          return -1;
     },
     pass() {
          return 0;
     },
     succeed() {
          return 1;
     }
}
global.EntryResult = EntryResult
global.EntryHelper = new EntryHelper()